package com.nttuan.model.entity;

import java.util.Date;

/**
 * Created by NT Tuan on 10/20/2014.
 */
public class Track {

    public static final String ACTION_GET_INVITE = "get-invite";
    public static final String ACTION_GET_UPDATE = "get-update";


    public static final String ACTION_ALARM = "1";
    public static final String ACTION_EVENT_START = "2";
    public static final String ACTION_RECEIVE_INVITE = "3";
    public static final String ACTION_SEND_INVITE = "4";
    public static final String ACTION_UPDATE_INVITE = "5";
    public static final String ACTION_RECEIVE_UPDATE_INVITE = "6";
    public static final String ACTION_SEND_ACCEPT = "7";
    public static final String ACTION_RECEIVE_ACCEPT = "8";
    public static final String ACTION_DELETE_INVITE = "9";
    public static final String ACTION_RECEIVE_DELETE_INVITE = "10";


    public static final String TABLE_NAME = "track";
    public static final String TRACK_ID = "trackId";
    public static final String ACTION = "action";
    public static final String MESSAGE = "message";
    public static final String LAST_TIME = "lastTime";
    public static final String IS_ACTIVE = "isActive";
    public static final String COMMIT = "isCommit";

    private int trackId;
    private String action;
    private String message;
    private boolean isActive;
    private boolean commit;
    private Date lastTime;
    private Task task;

    public Track(){}

    public Track(int trackId, String action, String message, boolean isActive,boolean commit, Date lastTime) {
        this.trackId = trackId;
        this.action = action;
        this.message = message;
        this.isActive = isActive;
        this.commit = commit;
        this.lastTime = lastTime;
    }

    public Track(int trackId) {
        this.trackId = trackId;
    }

    public Track(String action) {
        this.action = action;
    }

    public int getTrackId() {
        return trackId;
    }

    public void setTrackId(int trackId) {
        this.trackId = trackId;
    }

    public String getActon() {
        return action;
    }

    public void setActon(String acton) {
        this.action = acton;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean isActive) {
        this.isActive = isActive;
    }

    public boolean isCommit() {
        return commit;
    }

    public void setCommit(boolean commit) {
        this.commit = commit;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }
}
